var util = require("../../../utils/util.js"),
api = require("../../../utils/api.js"), 
app = getApp();
Page({
    data: {
        configInfo:{},
        imgUrl:app.globalData.baseImgUrl,
    },
    pasteClick: function(t) {
        this.copyText();
    },
    copyText: function(t) {
        wx.setClipboardData({
            data: this.data.configInfo.official_account_code,
            success: function(t) {
                wx.getClipboardData({
                    success: function(t) {
                        wx.showToast({
                            title: "复制成功"
                        });
                    }
                });
            }
        });
    },
    onLoad: function(t) {
        api.default.config().then((a)=>{
            this.setData({configInfo:a.data})
         });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});